<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>YAML::Tiny - Read/Write YAML files with as little code as possible - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of YAML-Tiny - MetaCPAN" href="https://metacpan.org/dist/YAML-Tiny/releases.rss" />
        <link rel="canonical" href="./YAML::Tiny.html" />
        <meta name="description" content="Read/Write YAML files with as little code as possible" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/YAML::Tiny" />
<meta name="twitter:title"       content="YAML::Tiny" />
<meta name="twitter:description" content="Read/Write YAML files with as little code as possible" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./YAML::Tiny.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of YAML-Tiny was released.">
      <span class="relatize">23 Mar 2023 03:20:43 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/YAML-Tiny">YAML-Tiny</a>
  </li>
  <li>
    Module version: 1.74
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/YAML-Tiny/source/lib/YAML/Tiny.pm">Source</a>
    (<a href="https://metacpan.org/dist/YAML-Tiny/source/lib/YAML/Tiny.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/YAML-Tiny/source/lib/YAML">Browse</a>
    (<a href="https://metacpan.org/dist/YAML-Tiny/source/lib/YAML?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/YAML-Tiny/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/Perl-Toolchain-Gang/YAML-Tiny">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/YAML-Tiny/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/Perl-Toolchain-Gang/YAML-Tiny">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=YAML-Tiny">Issues</a>
      (15)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=YAML-Tiny+1.74" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/Y/YAML-Tiny.html?oncpan=1&amp;distmat=1&amp;version=1.74&amp;grade=2" style="color: #090">2882</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/Y/YAML-Tiny.html?oncpan=1&amp;distmat=1&amp;version=1.74&amp;grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/Y/YAML-Tiny.html?oncpan=1&amp;distmat=1&amp;version=1.74&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/ETHER/YAML-Tiny-1.74">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on YAML-Tiny who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 3
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/YAML-Tiny-1.74/index.html">89.95% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.8.1
    </li>
    <li class="chat-banner">
      <div><a rel="noopener nofollow" target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.perl.org/#yaml?nick=mc-guest-?">Chat with us!</a></div>
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/YAML-Tiny/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/E/ET/ETHER/YAML-Tiny-1.74.tar.gz">
      Download (<span itemprop="fileSize">73.28KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FETHER%2FYAML-Tiny-1.74%2Flib%2FYAML%2FTiny.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/YAML-Tiny/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/YAML-Tiny/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:YAML-Tiny">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="YAML-Tiny">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/YAML/Tiny.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="ETHER/YAML-Tiny-1.74"
>1.74
  (ETHER on 2023-03-23)</option>
<option
  
  value="ETHER/YAML-Tiny-1.73"
>1.73
  (ETHER on 2018-02-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.51"
>1.51
  (ADAMK on 2012-03-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.50"
>1.50
  (ADAMK on 2011-06-23)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.48"
>1.48
  (ADAMK on 2011-02-01)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.47"
>1.47
  (ADAMK on 2011-01-31)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.46"
>1.46
  (ADAMK on 2010-12-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.45_02"
>1.45_02 DEV
  (ADAMK on 2010-12-07)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.44"
>1.44
  (ADAMK on 2010-08-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.43"
>1.43
  (ADAMK on 2010-07-10)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.42"
>1.42
  (ADAMK on 2010-06-25)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.41"
>1.41
  (ADAMK on 2009-12-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.40"
>1.40
  (ADAMK on 2009-07-31)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.39"
>1.39
  (ADAMK on 2009-05-20)</option>
<optgroup label="BackPAN">'
<option
  
  value="ETHER/YAML-Tiny-1.72-TRIAL"
>1.72-TRIAL DEV
  (ETHER on 2017-02-12)</option>
<option
  
  value="ETHER/YAML-Tiny-1.71-TRIAL"
>1.71-TRIAL DEV
  (ETHER on 2017-02-04)</option>
<option
  
  value="ETHER/YAML-Tiny-1.70"
>1.70
  (ETHER on 2017-01-22)</option>
<option
  
  value="ETHER/YAML-Tiny-1.69"
>1.69
  (ETHER on 2015-07-26)</option>
<option
  
  value="ETHER/YAML-Tiny-1.68-TRIAL"
>1.68-TRIAL DEV
  (ETHER on 2015-07-09)</option>
<option
  
  value="ETHER/YAML-Tiny-1.67"
>1.67
  (ETHER on 2015-05-12)</option>
<option
  
  value="ETHER/YAML-Tiny-1.66"
>1.66
  (ETHER on 2015-03-16)</option>
<option
  
  value="ETHER/YAML-Tiny-1.65"
>1.65
  (ETHER on 2015-03-13)</option>
<option
  
  value="ETHER/YAML-Tiny-1.64"
>1.64
  (ETHER on 2014-10-08)</option>
<option
  
  value="ETHER/YAML-Tiny-1.63"
>1.63
  (ETHER on 2014-06-11)</option>
<option
  
  value="ETHER/YAML-Tiny-1.62"
>1.62
  (ETHER on 2014-03-16)</option>
<option
  
  value="ETHER/YAML-Tiny-1.61"
>1.61
  (ETHER on 2014-02-24)</option>
<option
  
  value="ETHER/YAML-Tiny-1.60"
>1.60
  (ETHER on 2014-02-13)</option>
<option
  
  value="ETHER/YAML-Tiny-1.59-TRIAL"
>1.59-TRIAL DEV
  (ETHER on 2014-02-06)</option>
<option
  
  value="ETHER/YAML-Tiny-1.58"
>1.58
  (ETHER on 2014-02-04)</option>
<option
  
  value="ETHER/YAML-Tiny-1.57"
>1.57
  (ETHER on 2014-01-30)</option>
<option
  
  value="ETHER/YAML-Tiny-1.56"
>1.56
  (ETHER on 2013-09-25)</option>
<option
  
  value="ETHER/YAML-Tiny-1.55"
>1.55
  (ETHER on 2013-09-19)</option>
<option
  
  value="ETHER/YAML-Tiny-1.54"
>1.54
  (ETHER on 2013-08-22)</option>
<option
  
  value="ETHER/YAML-Tiny-1.53"
>1.53
  (ETHER on 2013-08-21)</option>
<option
  
  value="ETHER/YAML-Tiny-1.52"
>1.52
  (ETHER on 2013-08-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.38"
>1.38
  (ADAMK on 2009-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.37"
>1.37
  (ADAMK on 2009-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.36"
>1.36
  (ADAMK on 2009-01-06)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.35"
>1.35
  (ADAMK on 2008-12-17)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.34_01"
>1.34_01 DEV
  (ADAMK on 2008-11-19)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.32"
>1.32
  (ADAMK on 2008-05-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.31"
>1.31
  (ADAMK on 2008-05-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.30"
>1.30
  (ADAMK on 2008-05-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.29"
>1.29
  (ADAMK on 2008-04-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.28_01"
>1.28_01 DEV
  (ADAMK on 2008-04-07)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.27"
>1.27
  (ADAMK on 2008-03-30)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.26"
>1.26
  (ADAMK on 2008-03-20)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.25"
>1.25
  (ADAMK on 2008-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.24_01"
>1.24_01 DEV
  (ADAMK on 2008-01-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.23"
>1.23
  (ADAMK on 2008-01-10)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.22_01"
>1.22_01 DEV
  (ADAMK on 2008-01-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.21"
>1.21
  (ADAMK on 2007-12-06)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.20"
>1.20
  (ADAMK on 2007-11-19)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.19"
>1.19
  (ADAMK on 2007-11-17)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.17"
>1.17
  (ADAMK on 2007-11-01)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.16"
>1.16
  (ADAMK on 2007-10-22)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.14"
>1.14
  (ADAMK on 2007-08-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.13"
>1.13
  (ADAMK on 2007-07-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.12"
>1.12
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.11"
>1.11
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.10"
>1.10
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.09"
>1.09
  (ADAMK on 2007-05-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.08"
>1.08
  (ADAMK on 2007-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.07"
>1.07
  (ADAMK on 2007-05-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.06"
>1.06
  (ADAMK on 2007-05-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.05"
>1.05
  (ADAMK on 2007-05-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.04"
>1.04
  (ADAMK on 2007-02-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.03"
>1.03
  (ADAMK on 2007-01-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.02"
>1.02
  (ADAMK on 2007-01-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.01"
>1.01
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.00"
>1.00
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.90"
>0.90
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.11"
>0.11
  (ADAMK on 2006-09-26)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.10"
>0.10
  (ADAMK on 2006-08-23)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.05"
>0.05
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.04"
>0.04
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.03"
>0.03
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.02"
>0.02
  (ADAMK on 2006-04-25)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.01"
>0.01
  (ADAMK on 2006-04-23)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/ETHER/YAML-Tiny-1.74/diff/' + encodeURIComponent(this.value) + '/lib/YAML/Tiny.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="ETHER/YAML-Tiny-1.74"
>1.74
  (ETHER on 2023-03-23)</option>
<option
  
  value="ETHER/YAML-Tiny-1.73"
>1.73
  (ETHER on 2018-02-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.51"
>1.51
  (ADAMK on 2012-03-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.50"
>1.50
  (ADAMK on 2011-06-23)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.48"
>1.48
  (ADAMK on 2011-02-01)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.47"
>1.47
  (ADAMK on 2011-01-31)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.46"
>1.46
  (ADAMK on 2010-12-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.45_02"
>1.45_02 DEV
  (ADAMK on 2010-12-07)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.44"
>1.44
  (ADAMK on 2010-08-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.43"
>1.43
  (ADAMK on 2010-07-10)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.42"
>1.42
  (ADAMK on 2010-06-25)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.41"
>1.41
  (ADAMK on 2009-12-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.40"
>1.40
  (ADAMK on 2009-07-31)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.39"
>1.39
  (ADAMK on 2009-05-20)</option>
<optgroup label="BackPAN">'
<option
  
  value="ETHER/YAML-Tiny-1.72-TRIAL"
>1.72-TRIAL DEV
  (ETHER on 2017-02-12)</option>
<option
  
  value="ETHER/YAML-Tiny-1.71-TRIAL"
>1.71-TRIAL DEV
  (ETHER on 2017-02-04)</option>
<option
  
  value="ETHER/YAML-Tiny-1.70"
>1.70
  (ETHER on 2017-01-22)</option>
<option
  
  value="ETHER/YAML-Tiny-1.69"
>1.69
  (ETHER on 2015-07-26)</option>
<option
  
  value="ETHER/YAML-Tiny-1.68-TRIAL"
>1.68-TRIAL DEV
  (ETHER on 2015-07-09)</option>
<option
  
  value="ETHER/YAML-Tiny-1.67"
>1.67
  (ETHER on 2015-05-12)</option>
<option
  
  value="ETHER/YAML-Tiny-1.66"
>1.66
  (ETHER on 2015-03-16)</option>
<option
  
  value="ETHER/YAML-Tiny-1.65"
>1.65
  (ETHER on 2015-03-13)</option>
<option
  
  value="ETHER/YAML-Tiny-1.64"
>1.64
  (ETHER on 2014-10-08)</option>
<option
  
  value="ETHER/YAML-Tiny-1.63"
>1.63
  (ETHER on 2014-06-11)</option>
<option
  
  value="ETHER/YAML-Tiny-1.62"
>1.62
  (ETHER on 2014-03-16)</option>
<option
  
  value="ETHER/YAML-Tiny-1.61"
>1.61
  (ETHER on 2014-02-24)</option>
<option
  
  value="ETHER/YAML-Tiny-1.60"
>1.60
  (ETHER on 2014-02-13)</option>
<option
  
  value="ETHER/YAML-Tiny-1.59-TRIAL"
>1.59-TRIAL DEV
  (ETHER on 2014-02-06)</option>
<option
  
  value="ETHER/YAML-Tiny-1.58"
>1.58
  (ETHER on 2014-02-04)</option>
<option
  
  value="ETHER/YAML-Tiny-1.57"
>1.57
  (ETHER on 2014-01-30)</option>
<option
  
  value="ETHER/YAML-Tiny-1.56"
>1.56
  (ETHER on 2013-09-25)</option>
<option
  
  value="ETHER/YAML-Tiny-1.55"
>1.55
  (ETHER on 2013-09-19)</option>
<option
  
  value="ETHER/YAML-Tiny-1.54"
>1.54
  (ETHER on 2013-08-22)</option>
<option
  
  value="ETHER/YAML-Tiny-1.53"
>1.53
  (ETHER on 2013-08-21)</option>
<option
  
  value="ETHER/YAML-Tiny-1.52"
>1.52
  (ETHER on 2013-08-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.38"
>1.38
  (ADAMK on 2009-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.37"
>1.37
  (ADAMK on 2009-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.36"
>1.36
  (ADAMK on 2009-01-06)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.35"
>1.35
  (ADAMK on 2008-12-17)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.34_01"
>1.34_01 DEV
  (ADAMK on 2008-11-19)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.32"
>1.32
  (ADAMK on 2008-05-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.31"
>1.31
  (ADAMK on 2008-05-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.30"
>1.30
  (ADAMK on 2008-05-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.29"
>1.29
  (ADAMK on 2008-04-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.28_01"
>1.28_01 DEV
  (ADAMK on 2008-04-07)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.27"
>1.27
  (ADAMK on 2008-03-30)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.26"
>1.26
  (ADAMK on 2008-03-20)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.25"
>1.25
  (ADAMK on 2008-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.24_01"
>1.24_01 DEV
  (ADAMK on 2008-01-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.23"
>1.23
  (ADAMK on 2008-01-10)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.22_01"
>1.22_01 DEV
  (ADAMK on 2008-01-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.21"
>1.21
  (ADAMK on 2007-12-06)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.20"
>1.20
  (ADAMK on 2007-11-19)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.19"
>1.19
  (ADAMK on 2007-11-17)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.17"
>1.17
  (ADAMK on 2007-11-01)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.16"
>1.16
  (ADAMK on 2007-10-22)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.14"
>1.14
  (ADAMK on 2007-08-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.13"
>1.13
  (ADAMK on 2007-07-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.12"
>1.12
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.11"
>1.11
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.10"
>1.10
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.09"
>1.09
  (ADAMK on 2007-05-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.08"
>1.08
  (ADAMK on 2007-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.07"
>1.07
  (ADAMK on 2007-05-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.06"
>1.06
  (ADAMK on 2007-05-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.05"
>1.05
  (ADAMK on 2007-05-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.04"
>1.04
  (ADAMK on 2007-02-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.03"
>1.03
  (ADAMK on 2007-01-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.02"
>1.02
  (ADAMK on 2007-01-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.01"
>1.01
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.00"
>1.00
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.90"
>0.90
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.11"
>0.11
  (ADAMK on 2006-09-26)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.10"
>0.10
  (ADAMK on 2006-08-23)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.05"
>0.05
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.04"
>0.04
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.03"
>0.03
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.02"
>0.02
  (ADAMK on 2006-04-25)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.01"
>0.01
  (ADAMK on 2006-04-23)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/B" title="B" class="ellipsis">B</a></li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/Exporter" title="Exporter" class="ellipsis">Exporter</a></li>
  <li><a href="https://metacpan.org/pod/Fcntl" title="Fcntl" class="ellipsis">Fcntl</a></li>
  <li><a href="https://metacpan.org/pod/Scalar::Util" title="Scalar::Util" class="ellipsis">Scalar::Util</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/warnings" title="warnings" class="ellipsis">warnings</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/YAML::Tiny/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=YAML%3A%3ATiny">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=YAML-Tiny">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/ETHER/YAML-Tiny-1.74/view/lib/YAML/Tiny.pm">This version</a>
    </li>
    <li>
      <a href="./YAML::Tiny.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MITHUN"><img src="https://www.gravatar.com/avatar/41a11eddab777db7ae1a8961dce61cc8?d=identicon&amp;s=20" title="MITHUN" alt="MITHUN"></a>
<a class="display-all" href="https://metacpan.org/author/ADAMJS"><img src="https://www.gravatar.com/avatar/62c7b6e864d6509cff5839543c676614?d=identicon&amp;s=20" title="ADAMJS" alt="ADAMJS"></a>
<a class="display-all" href="https://metacpan.org/author/MISHIN"><img src="https://www.gravatar.com/avatar/7aefe037fc617ef89780ad89de3deb87?d=identicon&amp;s=20" title="MISHIN" alt="MISHIN"></a>
<a class="display-all" href="https://metacpan.org/author/DAGOLDEN"><img src="https://www.gravatar.com/avatar/bb755c989fcb9897f28a2c6e00df61e2?d=identicon&amp;s=20" title="DAGOLDEN" alt="DAGOLDEN"></a>
<a class="display-all" href="https://metacpan.org/author/PINGAN"><img src="https://www.gravatar.com/avatar/a02222e5e0e4fd24d52fc29a08ac6bcb?d=identicon&amp;s=20" title="PINGAN" alt="PINGAN"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/YAML-Tiny/plussers">16 PAUSE users</a>
</div>
<div>
    16 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 16 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-cpan-author="ADAMK"
      data-contrib-email="adamk@cpan.org"
    >
      <a href="https://metacpan.org/author/ADAMK" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/884124d0169f41668fb3f948b2ba8b0a?d=identicon&amp;s=20" />
      Adam Kennedy
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DAGOLDEN"
      data-contrib-email="dagolden@cpan.org xdg@xdg.me"
    >
      <a href="https://metacpan.org/author/DAGOLDEN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bb755c989fcb9897f28a2c6e00df61e2?d=identicon&amp;s=20" />
      David Golden
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="ingy@ingy.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Ingy döt Net
    </li>
    <li class="contributor"
      data-cpan-author="JKEENAN"
      data-contrib-email="jkeenan@cpan.org"
    >
      <a href="https://metacpan.org/author/JKEENAN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/916bcaf0f8dbf1a198589096b293c603?d=identicon&amp;s=20" />
      James E Keenan
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="CHORNY"
      data-contrib-email="chorny@cpan.org"
    >
      <a href="https://metacpan.org/author/CHORNY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/9982a6d902348d1982dd60235724e63c?d=identicon&amp;s=20" />
      Alexandr Ciornii
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="HAARG"
      data-contrib-email="haarg@haarg.org"
    >
      <a href="https://metacpan.org/author/HAARG" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5037faf9ba40cf736778820fe83fc2ae?d=identicon&amp;s=20" />
      Graham Knop
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SMUELLER"
      data-contrib-email="smueller@cpan.org"
    >
      <a href="https://metacpan.org/author/SMUELLER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/ac0c0eab36df58cd3676c1f03f4d5185?d=identicon&amp;s=20" />
      Steffen Müller
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="bengen@hilluzination.de"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Hilko Bengen
    </li>
    <li class="contributor"
      data-contrib-email="neil@bowers.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Neil Bowers
    </li>
    <li class="contributor"
      data-cpan-author="DOLMEN"
      data-contrib-email="dolmen@cpan.org"
    >
      <a href="https://metacpan.org/author/DOLMEN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/70d9b050bfe39350c234d710fadfcd39?d=identicon&amp;s=20" />
      Olivier Mengué
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="NUFFIN"
      data-contrib-email="nothingmuch@woobling.org"
    >
      <a href="https://metacpan.org/author/NUFFIN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/965ab495ae19eeb538d054ae6caaf1bb?d=identicon&amp;s=20" />
      יובל קוג&#39;מן (Yuval Kogman)
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="craigberry@mac.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Craig A. Berry
    </li>
    <li class="contributor"
      data-contrib-email="flavio@polettix.it"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Flavio Poletti
    </li>
    <li class="contributor"
      data-contrib-email="richlv@nakts.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Richlv
    </li>
    <li class="contributor"
      data-cpan-author="SREZIC"
      data-contrib-email="slaven@rezic.de"
    >
      <a href="https://metacpan.org/author/SREZIC" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5fa5a4e5ffdf883a1fcb1840c915d485?d=identicon&amp;s=20" />
      Slaven Rezic
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="TIMB"
      data-contrib-email="Tim.Bunce@pobox.com"
    >
      <a href="https://metacpan.org/author/TIMB" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/a497fd127f6d1e9e1e618bf46504fc59?d=identicon&amp;s=20" />
      Tim Bunce
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/ETHER" class="author-name">Karen Etheridge 🐾 🌋🦑🇹🇼🇭🇰🇺🇦</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/YAML/Tiny.pm&#39;" class="">
<option
  selected
  value="ETHER/YAML-Tiny-1.74"
>1.74
  (ETHER on 2023-03-23)</option>
<option
  
  value="ETHER/YAML-Tiny-1.73"
>1.73
  (ETHER on 2018-02-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.51"
>1.51
  (ADAMK on 2012-03-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.50"
>1.50
  (ADAMK on 2011-06-23)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.48"
>1.48
  (ADAMK on 2011-02-01)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.47"
>1.47
  (ADAMK on 2011-01-31)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.46"
>1.46
  (ADAMK on 2010-12-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.45_02"
>1.45_02 DEV
  (ADAMK on 2010-12-07)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.44"
>1.44
  (ADAMK on 2010-08-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.43"
>1.43
  (ADAMK on 2010-07-10)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.42"
>1.42
  (ADAMK on 2010-06-25)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.41"
>1.41
  (ADAMK on 2009-12-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.40"
>1.40
  (ADAMK on 2009-07-31)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.39"
>1.39
  (ADAMK on 2009-05-20)</option>
<optgroup label="BackPAN">'
<option
  
  value="ETHER/YAML-Tiny-1.72-TRIAL"
>1.72-TRIAL DEV
  (ETHER on 2017-02-12)</option>
<option
  
  value="ETHER/YAML-Tiny-1.71-TRIAL"
>1.71-TRIAL DEV
  (ETHER on 2017-02-04)</option>
<option
  
  value="ETHER/YAML-Tiny-1.70"
>1.70
  (ETHER on 2017-01-22)</option>
<option
  
  value="ETHER/YAML-Tiny-1.69"
>1.69
  (ETHER on 2015-07-26)</option>
<option
  
  value="ETHER/YAML-Tiny-1.68-TRIAL"
>1.68-TRIAL DEV
  (ETHER on 2015-07-09)</option>
<option
  
  value="ETHER/YAML-Tiny-1.67"
>1.67
  (ETHER on 2015-05-12)</option>
<option
  
  value="ETHER/YAML-Tiny-1.66"
>1.66
  (ETHER on 2015-03-16)</option>
<option
  
  value="ETHER/YAML-Tiny-1.65"
>1.65
  (ETHER on 2015-03-13)</option>
<option
  
  value="ETHER/YAML-Tiny-1.64"
>1.64
  (ETHER on 2014-10-08)</option>
<option
  
  value="ETHER/YAML-Tiny-1.63"
>1.63
  (ETHER on 2014-06-11)</option>
<option
  
  value="ETHER/YAML-Tiny-1.62"
>1.62
  (ETHER on 2014-03-16)</option>
<option
  
  value="ETHER/YAML-Tiny-1.61"
>1.61
  (ETHER on 2014-02-24)</option>
<option
  
  value="ETHER/YAML-Tiny-1.60"
>1.60
  (ETHER on 2014-02-13)</option>
<option
  
  value="ETHER/YAML-Tiny-1.59-TRIAL"
>1.59-TRIAL DEV
  (ETHER on 2014-02-06)</option>
<option
  
  value="ETHER/YAML-Tiny-1.58"
>1.58
  (ETHER on 2014-02-04)</option>
<option
  
  value="ETHER/YAML-Tiny-1.57"
>1.57
  (ETHER on 2014-01-30)</option>
<option
  
  value="ETHER/YAML-Tiny-1.56"
>1.56
  (ETHER on 2013-09-25)</option>
<option
  
  value="ETHER/YAML-Tiny-1.55"
>1.55
  (ETHER on 2013-09-19)</option>
<option
  
  value="ETHER/YAML-Tiny-1.54"
>1.54
  (ETHER on 2013-08-22)</option>
<option
  
  value="ETHER/YAML-Tiny-1.53"
>1.53
  (ETHER on 2013-08-21)</option>
<option
  
  value="ETHER/YAML-Tiny-1.52"
>1.52
  (ETHER on 2013-08-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.38"
>1.38
  (ADAMK on 2009-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.37"
>1.37
  (ADAMK on 2009-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.36"
>1.36
  (ADAMK on 2009-01-06)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.35"
>1.35
  (ADAMK on 2008-12-17)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.34_01"
>1.34_01 DEV
  (ADAMK on 2008-11-19)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.32"
>1.32
  (ADAMK on 2008-05-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.31"
>1.31
  (ADAMK on 2008-05-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.30"
>1.30
  (ADAMK on 2008-05-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.29"
>1.29
  (ADAMK on 2008-04-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.28_01"
>1.28_01 DEV
  (ADAMK on 2008-04-07)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.27"
>1.27
  (ADAMK on 2008-03-30)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.26"
>1.26
  (ADAMK on 2008-03-20)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.25"
>1.25
  (ADAMK on 2008-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.24_01"
>1.24_01 DEV
  (ADAMK on 2008-01-11)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.23"
>1.23
  (ADAMK on 2008-01-10)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.22_01"
>1.22_01 DEV
  (ADAMK on 2008-01-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.21"
>1.21
  (ADAMK on 2007-12-06)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.20"
>1.20
  (ADAMK on 2007-11-19)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.19"
>1.19
  (ADAMK on 2007-11-17)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.17"
>1.17
  (ADAMK on 2007-11-01)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.16"
>1.16
  (ADAMK on 2007-10-22)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.14"
>1.14
  (ADAMK on 2007-08-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.13"
>1.13
  (ADAMK on 2007-07-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.12"
>1.12
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.11"
>1.11
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.10"
>1.10
  (ADAMK on 2007-06-05)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.09"
>1.09
  (ADAMK on 2007-05-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.08"
>1.08
  (ADAMK on 2007-05-16)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.07"
>1.07
  (ADAMK on 2007-05-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.06"
>1.06
  (ADAMK on 2007-05-15)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.05"
>1.05
  (ADAMK on 2007-05-09)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.04"
>1.04
  (ADAMK on 2007-02-21)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.03"
>1.03
  (ADAMK on 2007-01-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.02"
>1.02
  (ADAMK on 2007-01-14)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.01"
>1.01
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-1.00"
>1.00
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.90"
>0.90
  (ADAMK on 2007-01-13)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.11"
>0.11
  (ADAMK on 2006-09-26)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.10"
>0.10
  (ADAMK on 2006-08-23)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.05"
>0.05
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.04"
>0.04
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.03"
>0.03
  (ADAMK on 2006-07-08)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.02"
>0.02
  (ADAMK on 2006-04-25)</option>
<option
  
  value="ADAMK/YAML-Tiny-0.01"
>0.01
  (ADAMK on 2006-04-23)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/YAML-Tiny">YAML-Tiny-1.74</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage four &#10;
          • 117 direct dependents &#10;          • 1063 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="YAML-Tiny-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="YAML-Tiny-1.74">
    <input type="hidden" name="author" value="ETHER">
    <input type="hidden" name="distribution" value="YAML-Tiny">
    <button type="submit" class="favorite highlight"><span>32</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./YAML::Tiny.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>32</span> ++</a>
</div>
   / <span>YAML::Tiny</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./YAML::Tiny.html#NAME">NAME</a></li>
  <li><a href="./YAML::Tiny.html#VERSION">VERSION</a></li>
  <li><a href="./YAML::Tiny.html#PREAMBLE">PREAMBLE</a></li>
  <li><a href="./YAML::Tiny.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./YAML::Tiny.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./YAML::Tiny.html#METHODS">METHODS</a>
    <ul>
      <li><a href="./YAML::Tiny.html#new">new</a></li>
      <li><a href="./YAML::Tiny.html#read-$filename">read $filename</a></li>
      <li><a href="./YAML::Tiny.html#read_string-$string;">read_string $string;</a></li>
      <li><a href="./YAML::Tiny.html#write-$filename">write $filename</a></li>
      <li><a href="./YAML::Tiny.html#write_string">write_string</a></li>
      <li><a href="./YAML::Tiny.html#errstr-(DEPRECATED)">errstr (DEPRECATED)</a></li>
    </ul>
  </li>
  <li><a href="./YAML::Tiny.html#FUNCTIONS">FUNCTIONS</a>
    <ul>
      <li><a href="./YAML::Tiny.html#Dump">Dump</a></li>
      <li><a href="./YAML::Tiny.html#Load">Load</a></li>
      <li><a href="./YAML::Tiny.html#freeze()-and-thaw()">freeze() and thaw()</a></li>
      <li><a href="./YAML::Tiny.html#DumpFile(filepath,-list)">DumpFile(filepath, list)</a></li>
      <li><a href="./YAML::Tiny.html#LoadFile(filepath)">LoadFile(filepath)</a></li>
    </ul>
  </li>
  <li><a href="./YAML::Tiny.html#YAML-TINY-SPECIFICATION">YAML TINY SPECIFICATION</a>
    <ul>
      <li><a href="./YAML::Tiny.html#1.-Introduction-and-Goals">1. Introduction and Goals</a></li>
      <li><a href="./YAML::Tiny.html#2.-Introduction">2. Introduction</a></li>
      <li><a href="./YAML::Tiny.html#3.-Processing-YAML-Tiny-Information">3. Processing YAML Tiny Information</a></li>
      <li><a href="./YAML::Tiny.html#4.-Syntax">4. Syntax</a></li>
      <li><a href="./YAML::Tiny.html#Additional-Perl-Specific-Notes">Additional Perl-Specific Notes</a></li>
    </ul>
  </li>
  <li><a href="./YAML::Tiny.html#SUPPORT">SUPPORT</a></li>
  <li><a href="./YAML::Tiny.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./YAML::Tiny.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./YAML::Tiny.html#COPYRIGHT">COPYRIGHT</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>YAML::Tiny - Read/Write YAML files with as little code as possible</p>

<h1 id="VERSION">VERSION</h1>

<p>version 1.74</p>

<h1 id="PREAMBLE">PREAMBLE</h1>

<p>The YAML specification is huge. Really, <b>really</b> huge. It contains all the functionality of XML, except with flexibility and choice, which makes it easier to read, but with a formal specification that is more complex than XML.</p>

<p>The original pure-Perl implementation <a href="YAML.html">YAML</a> costs just over 4 megabytes of memory to load. Just like with Windows <i>.ini</i> files (3 meg to load) and CSS (3.5 meg to load) the situation is just asking for a <b>YAML::Tiny</b> module, an incomplete but correct and usable subset of the functionality, in as little code as possible.</p>

<p>Like the other <code>::Tiny</code> modules, YAML::Tiny has no non-core dependencies, does not require a compiler to install, is back-compatible to Perl v5.8.1, and can be inlined into other modules if needed.</p>

<p>In exchange for adding this extreme flexibility, it provides support for only a limited subset of YAML. But the subset supported contains most of the features for the more common uses of YAML.</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<p>Assuming <i>file.yml</i> like this:</p>

<pre><code>    ---
    rootproperty: blah
    section:
      one: two
      three: four
      Foo: Bar
      empty: ~</code></pre>

<p>Read and write <i>file.yml</i> like this:</p>

<pre><code>    use YAML::Tiny;

    # Open the config
    my $yaml = YAML::Tiny-&gt;read( &#39;file.yml&#39; );

    # Get a reference to the first document
    my $config = $yaml-&gt;[0];

    # Or read properties directly
    my $root = $yaml-&gt;[0]-&gt;{rootproperty};
    my $one  = $yaml-&gt;[0]-&gt;{section}-&gt;{one};
    my $Foo  = $yaml-&gt;[0]-&gt;{section}-&gt;{Foo};

    # Change data directly
    $yaml-&gt;[0]-&gt;{newsection} = { this =&gt; &#39;that&#39; }; # Add a section
    $yaml-&gt;[0]-&gt;{section}-&gt;{Foo} = &#39;Not Bar!&#39;;     # Change a value
    delete $yaml-&gt;[0]-&gt;{section};                  # Delete a value

    # Save the document back to the file
    $yaml-&gt;write( &#39;file.yml&#39; );</code></pre>

<p>To create a new YAML file from scratch:</p>

<pre><code>    # Create a new object with a single hashref document
    my $yaml = YAML::Tiny-&gt;new( { wibble =&gt; &quot;wobble&quot; } );

    # Add an arrayref document
    push @$yaml, [ &#39;foo&#39;, &#39;bar&#39;, &#39;baz&#39; ];

    # Save both documents to a file
    $yaml-&gt;write( &#39;data.yml&#39; );</code></pre>

<p>Then <i>data.yml</i> will contain:</p>

<pre><code>    ---
    wibble: wobble
    ---
    - foo
    - bar
    - baz</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><b>YAML::Tiny</b> is a perl class for reading and writing YAML-style files, written with as little code as possible, reducing load time and memory overhead.</p>

<p>Most of the time it is accepted that Perl applications use a lot of memory and modules. The <b>::Tiny</b> family of modules is specifically intended to provide an ultralight and zero-dependency alternative to many more-thorough standard modules.</p>

<p>This module is primarily for reading human-written files (like simple config files) and generating very simple human-readable files. Note that I said <b>human-readable</b> and not <b>geek-readable</b>. The sort of files that your average manager or secretary should be able to look at and make sense of.</p>

<p><a href="./YAML::Tiny.html">YAML::Tiny</a> does not generate comments, it won&#39;t necessarily preserve the order of your hashes, and it will normalise if reading in and writing out again.</p>

<p>It only supports a very basic subset of the full YAML specification.</p>

<p>Usage is targeted at files like Perl&#39;s META.yml, for which a small and easily-embeddable module is extremely attractive.</p>

<p>Features will only be added if they are human readable, and can be written in a few lines of code. Please don&#39;t be offended if your request is refused. Someone has to draw the line, and for YAML::Tiny that someone is me.</p>

<p>If you need something with more power move up to <a href="YAML.html">YAML</a> (7 megabytes of memory overhead) or <a href="./YAML::XS.html">YAML::XS</a> (6 megabytes memory overhead and requires a C compiler).</p>

<p>To restate, <a href="./YAML::Tiny.html">YAML::Tiny</a> does <b>not</b> preserve your comments, whitespace, or the order of your YAML data. But it should round-trip from Perl structure to file and back again just fine.</p>

<h1 id="METHODS">METHODS</h1>

<h2 id="new">new</h2>

<p>The constructor <code>new</code> creates a <code>YAML::Tiny</code> object as a blessed array reference. Any arguments provided are taken as separate documents to be serialized.</p>

<h2 id="read-$filename"><a id="read"></a><a id="read--filename"></a>read $filename</h2>

<p>The <code>read</code> constructor reads a YAML file from a file name, and returns a new <code>YAML::Tiny</code> object containing the parsed content.</p>

<p>Returns the object on success or throws an error on failure.</p>

<h2 id="read_string-$string;"><a id="read_string"></a><a id="read_string--string"></a>read_string $string;</h2>

<p>The <code>read_string</code> constructor reads YAML data from a character string, and returns a new <code>YAML::Tiny</code> object containing the parsed content. If you have read the string from a file yourself, be sure that you have correctly decoded it into characters first.</p>

<p>Returns the object on success or throws an error on failure.</p>

<h2 id="write-$filename"><a id="write"></a><a id="write--filename"></a>write $filename</h2>

<p>The <code>write</code> method generates the file content for the properties, and writes it to disk using UTF-8 encoding to the filename specified.</p>

<p>Returns true on success or throws an error on failure.</p>

<h2 id="write_string">write_string</h2>

<p>Generates the file content for the object and returns it as a character string. This may contain non-ASCII characters and should be encoded before writing it to a file.</p>

<p>Returns true on success or throws an error on failure.</p>

<h2 id="errstr-(DEPRECATED)"><a id="errstr"></a><a id="errstr--DEPRECATED"></a>errstr (DEPRECATED)</h2>

<p>Prior to version 1.57, some errors were fatal and others were available only via the <code>$YAML::Tiny::errstr</code> variable, which could be accessed via the <code>errstr()</code> method.</p>

<p>Starting with version 1.57, all errors are fatal and throw exceptions.</p>

<p>The <code>$errstr</code> variable is still set when exceptions are thrown, but <code>$errstr</code> and the <code>errstr()</code> method are deprecated and may be removed in a future release. The first use of <code>errstr()</code> will issue a deprecation warning.</p>

<h1 id="FUNCTIONS">FUNCTIONS</h1>

<p>YAML::Tiny implements a number of functions to add compatibility with the <a href="YAML.html">YAML</a> API. These should be a drop-in replacement.</p>

<h2 id="Dump">Dump</h2>

<pre><code>  my $string = Dump(list-of-Perl-data-structures);</code></pre>

<p>Turn Perl data into YAML. This function works very much like Data::Dumper::Dumper().</p>

<p>It takes a list of Perl data structures and dumps them into a serialized form.</p>

<p>It returns a character string containing the YAML stream. Be sure to encode it as UTF-8 before serializing to a file or socket.</p>

<p>The structures can be references or plain scalars.</p>

<p>Dies on any error.</p>

<h2 id="Load">Load</h2>

<pre><code>  my @data_structures = Load(string-containing-a-YAML-stream);</code></pre>

<p>Turn YAML into Perl data. This is the opposite of Dump.</p>

<p>Just like <a href="https://metacpan.org/pod/Storable">Storable</a>&#39;s thaw() function or the eval() function in relation to <a href="https://metacpan.org/pod/Data::Dumper">Data::Dumper</a>.</p>

<p>It parses a character string containing a valid YAML stream into a list of Perl data structures representing the individual YAML documents. Be sure to decode the character string correctly if the string came from a file or socket.</p>

<pre><code>  my $last_data_structure = Load(string-containing-a-YAML-stream);</code></pre>

<p>For consistency with YAML.pm, when Load is called in scalar context, it returns the data structure corresponding to the last of the YAML documents found in the input stream.</p>

<p>Dies on any error.</p>

<h2 id="freeze()-and-thaw()"><a id="freeze"></a><a id="freeze--and-thaw"></a>freeze() and thaw()</h2>

<p>Aliases to Dump() and Load() for <a href="https://metacpan.org/pod/Storable">Storable</a> fans. This will also allow YAML::Tiny to be plugged directly into modules like POE.pm, that use the freeze/thaw API for internal serialization.</p>

<h2 id="DumpFile(filepath,-list)"><a id="DumpFile"></a><a id="DumpFile-filepath--list"></a>DumpFile(filepath, list)</h2>

<p>Writes the YAML stream to a file with UTF-8 encoding instead of just returning a string.</p>

<p>Dies on any error.</p>

<h2 id="LoadFile(filepath)"><a id="LoadFile"></a><a id="LoadFile-filepath"></a>LoadFile(filepath)</h2>

<p>Reads the YAML stream from a UTF-8 encoded file instead of a string.</p>

<p>Dies on any error.</p>

<h1 id="YAML-TINY-SPECIFICATION"><a id="YAML"></a>YAML TINY SPECIFICATION</h1>

<p>This section of the documentation provides a specification for &quot;YAML Tiny&quot;, a subset of the YAML specification.</p>

<p>It is based on and described comparatively to the YAML 1.1 Working Draft 2004-12-28 specification, located at <a href="http://yaml.org/spec/current.html">http://yaml.org/spec/current.html</a>.</p>

<p>Terminology and chapter numbers are based on that specification.</p>

<h2 id="1.-Introduction-and-Goals"><a id="1"></a><a id="Introduction-and-Goals"></a>1. Introduction and Goals</h2>

<p>The purpose of the YAML Tiny specification is to describe a useful subset of the YAML specification that can be used for typical document-oriented use cases such as configuration files and simple data structure dumps.</p>

<p>Many specification elements that add flexibility or extensibility are intentionally removed, as is support for complex data structures, class and object-orientation.</p>

<p>In general, the YAML Tiny language targets only those data structures available in JSON, with the additional limitation that only simple keys are supported.</p>

<p>As a result, all possible YAML Tiny documents should be able to be transformed into an equivalent JSON document, although the reverse is not necessarily true (but will be true in simple cases).</p>

<p>As a result of these simplifications the YAML Tiny specification should be implementable in a (relatively) small amount of code in any language that supports Perl Compatible Regular Expressions (PCRE).</p>

<h2 id="2.-Introduction"><a id="2"></a><a id="Introduction"></a>2. Introduction</h2>

<p>YAML Tiny supports three data structures. These are scalars (in a variety of forms), block-form sequences and block-form mappings. Flow-style sequences and mappings are not supported, with some minor exceptions detailed later.</p>

<p>The use of three dashes &quot;---&quot; to indicate the start of a new document is supported, and multiple documents per file/stream is allowed.</p>

<p>Both line and inline comments are supported.</p>

<p>Scalars are supported via the plain style, single quote and double quote, as well as literal-style and folded-style multi-line scalars.</p>

<p>The use of explicit tags is not supported.</p>

<p>The use of &quot;null&quot; type scalars is supported via the ~ character.</p>

<p>The use of &quot;bool&quot; type scalars is not supported.</p>

<p>However, serializer implementations should take care to explicitly escape strings that match a &quot;bool&quot; keyword in the following set to prevent other implementations that do support &quot;bool&quot; accidentally reading a string as a boolean</p>

<pre><code>  y|Y|yes|Yes|YES|n|N|no|No|NO
  |true|True|TRUE|false|False|FALSE
  |on|On|ON|off|Off|OFF</code></pre>

<p>The use of anchors and aliases is not supported.</p>

<p>The use of directives is supported only for the %YAML directive.</p>

<h2 id="3.-Processing-YAML-Tiny-Information"><a id="3"></a><a id="Processing-YAML-Tiny-Information"></a>3. Processing YAML Tiny Information</h2>

<p><b>Processes</b></p>

<p>The YAML specification dictates three-phase serialization and three-phase deserialization.</p>

<p>The YAML Tiny specification does not mandate any particular methodology or mechanism for parsing.</p>

<p>Any compliant parser is only required to parse a single document at a time. The ability to support streaming documents is optional and most likely non-typical.</p>

<p>Because anchors and aliases are not supported, the resulting representation graph is thus directed but (unlike the main YAML specification) <b>acyclic</b>.</p>

<p>Circular references/pointers are not possible, and any YAML Tiny serializer detecting a circular reference should error with an appropriate message.</p>

<p><b>Presentation Stream</b></p>

<p>YAML Tiny reads and write UTF-8 encoded files. Operations on strings expect or produce Unicode characters not UTF-8 encoded bytes.</p>

<p><b>Loading Failure Points</b></p>

<p>YAML Tiny parsers and emitters are not expected to recover from, or adapt to, errors. The specific error modality of any implementation is not dictated (return codes, exceptions, etc.) but is expected to be consistent.</p>

<h2 id="4.-Syntax"><a id="4"></a><a id="Syntax"></a>4. Syntax</h2>

<p><b>Character Set</b></p>

<p>YAML Tiny streams are processed in memory as Unicode characters and read/written with UTF-8 encoding.</p>

<p>The escaping and unescaping of the 8-bit YAML escapes is required.</p>

<p>The escaping and unescaping of 16-bit and 32-bit YAML escapes is not required.</p>

<p><b>Indicator Characters</b></p>

<p>Support for the &quot;~&quot; null/undefined indicator is required.</p>

<p>Implementations may represent this as appropriate for the underlying language.</p>

<p>Support for the &quot;-&quot; block sequence indicator is required.</p>

<p>Support for the &quot;?&quot; mapping key indicator is <b>not</b> required.</p>

<p>Support for the &quot;:&quot; mapping value indicator is required.</p>

<p>Support for the &quot;,&quot; flow collection indicator is <b>not</b> required.</p>

<p>Support for the &quot;[&quot; flow sequence indicator is <b>not</b> required, with one exception (detailed below).</p>

<p>Support for the &quot;]&quot; flow sequence indicator is <b>not</b> required, with one exception (detailed below).</p>

<p>Support for the &quot;{&quot; flow mapping indicator is <b>not</b> required, with one exception (detailed below).</p>

<p>Support for the &quot;}&quot; flow mapping indicator is <b>not</b> required, with one exception (detailed below).</p>

<p>Support for the &quot;#&quot; comment indicator is required.</p>

<p>Support for the &quot;&amp;&quot; anchor indicator is <b>not</b> required.</p>

<p>Support for the &quot;*&quot; alias indicator is <b>not</b> required.</p>

<p>Support for the &quot;!&quot; tag indicator is <b>not</b> required.</p>

<p>Support for the &quot;|&quot; literal block indicator is required.</p>

<p>Support for the &quot;&gt;&quot; folded block indicator is required.</p>

<p>Support for the &quot;&#39;&quot; single quote indicator is required.</p>

<p>Support for the &quot;&quot;&quot; double quote indicator is required.</p>

<p>Support for the &quot;%&quot; directive indicator is required, but only for the special case of a %YAML version directive before the &quot;---&quot; document header, or on the same line as the document header.</p>

<p>For example:</p>

<pre><code>  %YAML 1.1
  ---
  - A sequence with a single element</code></pre>

<p>Special Exception:</p>

<p>To provide the ability to support empty sequences and mappings, support for the constructs [] (empty sequence) and {} (empty mapping) are required.</p>

<p>For example,</p>

<pre><code>  %YAML 1.1
  # A document consisting of only an empty mapping
  --- {}
  # A document consisting of only an empty sequence
  --- []
  # A document consisting of an empty mapping within a sequence
  - foo
  - {}
  - bar</code></pre>

<p><b>Syntax Primitives</b></p>

<p>Other than the empty sequence and mapping cases described above, YAML Tiny supports only the indentation-based block-style group of contexts.</p>

<p>All five scalar contexts are supported.</p>

<p>Indentation spaces work as per the YAML specification in all cases.</p>

<p>Comments work as per the YAML specification in all simple cases. Support for indented multi-line comments is <b>not</b> required.</p>

<p>Separation spaces work as per the YAML specification in all cases.</p>

<p><b>YAML Tiny Character Stream</b></p>

<p>The only directive supported by the YAML Tiny specification is the %YAML language/version identifier. Although detected, this directive will have no control over the parsing itself.</p>

<p>The parser must recognise both the YAML 1.0 and YAML 1.1+ formatting of this directive (as well as the commented form, although no explicit code should be needed to deal with this case, being a comment anyway)</p>

<p>That is, all of the following should be supported.</p>

<pre><code>  --- #YAML:1.0
  - foo

  %YAML:1.0
  ---
  - foo

  % YAML 1.1
  ---
  - foo</code></pre>

<p>Support for the %TAG directive is <b>not</b> required.</p>

<p>Support for additional directives is <b>not</b> required.</p>

<p>Support for the document boundary marker &quot;---&quot; is required.</p>

<p>Support for the document boundary market &quot;...&quot; is <b>not</b> required.</p>

<p>If necessary, a document boundary should simply be indicated with a &quot;---&quot; marker, with no preceding &quot;...&quot; marker.</p>

<p>Support for empty streams (containing no documents) is required.</p>

<p>Support for implicit document starts is required.</p>

<p>That is, the following must be equivalent.</p>

<pre><code> # Full form
 %YAML 1.1
 ---
 foo: bar

 # Implicit form
 foo: bar</code></pre>

<p><b>Nodes</b></p>

<p>Support for nodes optional anchor and tag properties is <b>not</b> required.</p>

<p>Support for node anchors is <b>not</b> required.</p>

<p>Support for node tags is <b>not</b> required.</p>

<p>Support for alias nodes is <b>not</b> required.</p>

<p>Support for flow nodes is <b>not</b> required.</p>

<p>Support for block nodes is required.</p>

<p><b>Scalar Styles</b></p>

<p>Support for all five scalar styles is required as per the YAML specification, although support for quoted scalars spanning more than one line is <b>not</b> required.</p>

<p>Support for multi-line scalar documents starting on the header is not required.</p>

<p>Support for the chomping indicators on multi-line scalar styles is required.</p>

<p><b>Collection Styles</b></p>

<p>Support for block-style sequences is required.</p>

<p>Support for flow-style sequences is <b>not</b> required.</p>

<p>Support for block-style mappings is required.</p>

<p>Support for flow-style mappings is <b>not</b> required.</p>

<p>Both sequences and mappings should be able to be arbitrarily nested.</p>

<p>Support for plain-style mapping keys is required.</p>

<p>Support for quoted keys in mappings is <b>not</b> required.</p>

<p>Support for &quot;?&quot;-indicated explicit keys is <b>not</b> required.</p>

<p>Here endeth the specification.</p>

<h2 id="Additional-Perl-Specific-Notes"><a id="Additional"></a>Additional Perl-Specific Notes</h2>

<p>For some Perl applications, it&#39;s important to know if you really have a number and not a string.</p>

<p>That is, in some contexts is important that 3 the number is distinctive from &quot;3&quot; the string.</p>

<p>Because even Perl itself is not trivially able to understand the difference (certainly without XS-based modules) Perl implementations of the YAML Tiny specification are not required to retain the distinctiveness of 3 vs &quot;3&quot;.</p>

<h1 id="SUPPORT">SUPPORT</h1>

<p>Bugs should be reported via the CPAN bug tracker at</p>

<p><a href="http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-Tiny">http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-Tiny</a></p>

For other issues, or commercial enhancement or support, please contact
<a href="http://ali.as/">Adam Kennedy</a> directly.

<h1 id="AUTHOR">AUTHOR</h1>

<p>Adam Kennedy &lt;adamk@cpan.org&gt;</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<ul>

<li><p><a href="YAML.html">YAML</a></p>

</li>
<li><p><a href="./YAML::Syck.html">YAML::Syck</a></p>

</li>
<li><p><a href="./Config::Tiny.html">Config::Tiny</a></p>

</li>
<li><p><a href="./CSS::Tiny.html">CSS::Tiny</a></p>

</li>
<li><p><a href="http://use.perl.org/use.perl.org/_Alias/journal/29427.html">http://use.perl.org/use.perl.org/_Alias/journal/29427.html</a></p>

</li>
<li><p><a href="http://ali.as/">http://ali.as/</a></p>

</li>
</ul>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>Copyright 2006 - 2013 Adam Kennedy.</p>

<p>This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<p>The full text of the license can be found in the LICENSE file included with this module.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install YAML::Tiny, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm YAML::Tiny</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install YAML::Tiny</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./YAML::Tiny.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
